package com.iqiju.guagua.redtone.video.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("登录返回对象")
public class LoginVO {

    @ApiModelProperty(required = true,notes = "登陆token",example = "123456")
    private String token;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(required = true,notes = "用户id",example = "999999")
    private Long userId;

    public LoginVO(String token, Long userId) {
        this.token = token;
        this.userId = userId;
    }
}
